package git.determinal.template.service;

import git.determinal.template.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @Description
 * @Author determinal
 * @Date 2024/5/28 下午4:26
 */
@Service
public class UserService {
    @Autowired
    private RestTemplate restTemplate;

    public String login(User user){
        String result = restTemplate.postForObject("http://instanceServer/login",user, String.class);
        return result;
    }
}
